package com.aabte.commons.errorcode;

import com.aabte.commons.bean.BaseResponse;
import com.aabte.commons.errorcode.enums.BaseResponseCode;

public class ResponseFactory {

    public static <T> BaseResponse<T> success(T data) {
        return BaseResponse.<T>builder().code(BaseResponseCode.SUCCESS.code())
                .message(BaseResponseCode.SUCCESS.message()).data(data).build();
    }

}
